import { BasicFetchResult } from '/@/api/model/baseModel';

// SaaS Landing IAM账号管理
export interface SaaSIamAccountListItem {
  id: string;
  iamName: string;
  password: string;
  pwdSalt: string;
  ak: string;
  sk: string;
  skSalt: string;
}

export type SaaSIamAccountCreateForm = {
  iamName: string;
  password: string;
  ak: string;
  sk: string;
};

export type SaaSIamAccountUpdateForm = {
  ['id']: string;
  ['iamName']: string;
  ['ak']: string;
  ['sk']: string;
  ['password']: string;
};

//IAM账号管理部分
export interface IamAccountItem {
  accountName: string; //账号名
  AK: string; //AK
  SK: string; //SK
  password: string; //密码
}
export type IamAccountItemGetResultModel = BasicFetchResult<IamAccountItem>;

//日志管理
export interface LogListItem {
  admin: string; //操作人
  IP: string; //IP
  operation: string; //SK
  currentTime: string; //发生时间
  spend: string;
}
export type LogListItemGetResultModel = BasicFetchResult<LogListItem>;
